package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 攻略评论服务
 */
public interface ITravelCommentService {

    /**
     * 添加更新
     */
    TravelComment saveOrUpdate(TravelComment comment);

    /**
     * 分页查询
     * @param qo
     * @return
     */
    Page query(TravelCommentQuery qo);

    /**
     * 游记评论楼层显示，本质是查看所有评论个数
     * @param travelId
     * @return
     */
    Long getCount(Long travelId);

    List<TravelComment> OrderByCreateTimeTop10();

}
